package com.softa.common.constant;

/**
 *  缓存常量类
 *
 * @author yangl
 * @date 2018/9/16
 */
public class CacheConstants {

    public static final String EMPTY_STR = "";

    /**
     * 站内信
     */
    public static final String  MESSAGE_SITE_CACHE = "messageSiteCache";

    /**
     * 对应cache上的name
     */
    public static final String  MESSAGE_SITE_CACHE_NAME = "Message-Site-";

    /**
     *  shiro授权
     */
    public static final String  SHIRO_AUTHORIZATION_CACHE = "authorizationCache";

    public static final String  SHIRO_AUTHORIZATION_CACHE_NAME = "authorizationCache-";

    /**
     *  shiro认证
     */
    public static final String  SHIRO_AUTHENTICATION_CACHE = "authenticationCache";

    public static final String  SHIRO_AUTHENTICATION_CACHE_NAME = "authenticationCache-";


    /**
     * shiro session
     */
    public static final String  SHIRO_ACTIVESESSION_CACHE= "shiro-activeSessionCache-";

    public static final String  SHIRO_KICKOUT_SESSION_CACHE= "shiro-kickout-session-";

    public static final String  SHIRO_PASSWORDRETRY_CACHE= "passwordRetryCache-";


    /**
     * shiro 公共
     */
    public static final String  SHIRO_CACHE_NAME = "shirocache-";

    public static final String  SHIRO_CACHE_KEYS = "keys";


    /**
     * 过期时间  -1 永不过期
     */
    public static final int TIME_OUT_MAX = -1;

    public static final int TIME_OUT_1800= 1800;

    public static final int TIME_OUT_3600 = 3600;

}
